/*
 * Script to display the createClosedEvent form
 * 
 * Author: Chris Casola
 */

(function() {
	
	/**
	 * Displays the createClosedEvent form on the page
	 */
	function CreateClosedEventForm(appFrame) {
		this.frame = appFrame;
		
		this.displayForm = function() {
			var content = "<section id='closedInputForm' class='inputForm'>" +
								"<p>Username</p>" +
								"<input type='text' id='closedUsername' name='closedUserName' size='15' /><br />" +
								"<p>How many people will be deciding?<span class='tip' id='peopleTip'>[?]</span></p>" +
								"<input type='text' id='closedNumChoices' name='closedNumChoices' size='15' /><br />" +
								"<p>How many rounds would you like to hold?<span class='tip' id='openRoundsTip'>[?]</span></p>" +
								"<input type='text' id='closedNumRounds' name='closedNumRounds' size='15' /><br />" +
								"<p>Enter your choices.</p>" +
								"<ul id='choices'>" +
									"<li><input type='text' id='choice1' name='choice1' size='15' /></li>" +
									"<li><input type='text' id='choice2' name='choice2' size='15' /></li>" +
									"<li><input type='text' id='choice3' name='choice3' size='15' /></li>" +
								"</ul>" +
								"<p>" +
									"<span class='tip' id='addChoice'>[+]</span>" +
									"<span class='tip' id='removeChoice'>[&ndash;]</span>" +
								"</p>" +
							"</section>";
			return content;
		}
	}
	
	window.CreateClosedEventForm = CreateClosedEventForm;
}).call();